package org.feng.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.feng.base.entity.BaseEntity;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 *
 * </p>
 *
 * @author feng
 * @since 2021-08-27
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("sys_dept")
public class Dept extends BaseEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableField("name")
    private String name;

    @TableField("parent_id")
    private Long parentId;

    @TableField("category")
    private Integer category;

    @TableField("sort")
    private Integer sort;

    @TableField("remark")
    private String remark;

    @TableField(exist = false)
    private List<Dept> children;
}
